package leaveSystem.dao;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

import leaveSystem.model.Role;

public interface RoleDAO {
	
	public List<Role> loadAll(Connection conn) throws SQLException;
	public void insertRole(Connection conn, Role valueObject) throws SQLException ;
	public void updateRole(Connection conn, Role valueObject) throws DAOException, SQLException;
	public void deleteRole(Connection conn, Role valueObject) throws DAOException, SQLException;
	public void deleteAllRole(Connection conn) throws SQLException;
	public List<Role> findRole(Connection conn, Role valueObject) throws SQLException;
	
}
